<template>
  <div>
    <!-- <img class="img" v-lazy="'https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=2464412420,1384411690&fm=26&gp=0.jpg'" alt=""> -->
    <!-- <el-button @click="fn" type="primary" :round="true" :loading="flag">危险按钮</el-button> -->
    <!-- <el-carousel :interval="1000" type="card" height="200px">
      <el-carousel-item v-for="(item, index) in list" :key="index">
        <h3 class="medium">{{ item }}</h3>
        <img v-lazy="item" alt="">
      </el-carousel-item>
    </el-carousel>-->

    <!-- <el-button @click="fn" type="primary" :round="true">危险按钮</el-button> -->
    <!-- <el-pagination
        background
        layout="prev, pager, next"
        :total="100">
    </el-pagination>-->
    <!-- <van-datetime-picker @confirm="success" v-model="currentDate" type="date" :min-date="minDate" :max-date="maxDate" /> -->
    <van-datetime-picker
  v-model="currentDate"
  type="datetime"
   @confirm="success"
  :min-date="minDate"
  :max-date="maxDate"
/>
  </div>
</template>

<script>
export default {
  data() {
    return {
      activeNames: ["1"],
      minDate: new Date(2020, 0, 1),
      maxDate: new Date(2025, 10, 1),
      currentDate: new Date()
    };
  },
  methods: {
    success() {
        console.log(this.currentDate.toLocaleString())
    },
    fn() {
      this.$message({
        message: "这是一条消息提示",
        type: "success"
      });
    }
  }
};
</script>

<style>
.el-carousel__item h3 {
  color: #475669;
  font-size: 14px;
  opacity: 0.75;
  line-height: 200px;
  margin: 0;
}

.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n + 1) {
  background-color: #d3dce6;
}
</style>